package org.Hex;

//import java.util.HexFormat;

public class TestHex {
    public static void test() {
//        byte[] data = "Hello".getBytes();
//        HexFormat hf = HexFormat.of();
//        String hexData = hf.formatHex(data); // 48656c6c6f
//        System.out.println(hexData);
//        HexFormat hexFormat = HexFormat.ofDelimiter(" ").withPrefix("0x").withUpperCase();
//        System.out.println(hexFormat.formatHex("Hello".getBytes()));
    }
}
